import * as jx from '../../utils/index.js'
Page({
  data: {
    isNow:true,
    animationData:'',
    isShowDig: false
  },

  toggleNow(){
    this.setData({
      isNow:true
    })
  },

  togglePre(){
    this.setData({
      isNow: false
    })
  },
  showShare(){
    var animation = wx.createAnimation({
      duration:500,
      timingFunction: 'ease',
      transformOrigin: '50% 50%'
    })
    animation.translateY(-150).step()
    this.setData({
      animationData: animation.export(),
      isShowDig:true
    })
  },

  hiddenDig(){
    var animation = wx.createAnimation({
      duration: 500,
      timingFunction: 'ease',
      transformOrigin: '50% 50%'
    })
    animation.translateY(150).step()
    this.setData({
      animationData: animation.export(),
      isShowDig: false
    })
  },

  goActivity(){
    jx.jumpTo('/pages/activity/index')
  }
})